package com.qc.searchBug.services;

import java.util.List;
import java.util.Map;

public interface BugInfoServices {
	public int addBug(Map<String,Object> map);
	
	public List<Map<String,Object>> findByAjax(Map<String, Object> map);
	//分页查询
	public List<Map<String,Object>> findByDescription(String description, int indexPage,
			int pageSize);

	public Map<String, Object> findByBugId(int bugId);

	public List<Map<String, Object>> findBugByUserId(int userId, int indexSize, int pageSize);

	public int updateQueriesnumber(int bugId, int queriesnumber);
	//查询总共有多少条数据
	public int findPageNumberByUserId(int userId);
	//根据BUGID删除
	public int deleteByBugId(int bugId);
}
